<?php

use console\db\channels\TransferTableMigration;

/**
 * 投票数据转移
 * 
 * @author emhome <emhome@163.com>
 * @since 1.0
 */
class m300200_100042_t_activity_vote extends TransferTableMigration {

    /**
     * @inheritdoc
     */
    public $sourceDb = 'olddb';

    /**
     * @inheritdoc
     */
    public function getTransferOptions() {
        return [
            'table' => [
                'activity_user_vote' => 'activity_user_vote',
            ],
            'columns' => [
                'id',
                'user_id',
                'activity_id' => 'actid',
                'type',
                'vote_id',
                'date',
                'created_at',
                'updated_at',
            ],
        ];
    }

}
